<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <style>
        进入激活
        .kerwin-enter-active {
            animation: aaa 1.5s;
        }

        /* 离开激活 */
        .kerwin-leave-active {
            animation: aaa 1.5s reverse;  /* 逆向渲染 */
        }

        @keyframes aaa {
            0% { 
                opacity: 0;
                transform:translateX(100px);
            }
            100% { 
                opacityopacity: 1; 
                transform:translateX(0px);
            
            }

        }

    </style>
</head>
<body>
    <!-- CSS3写法 -->
    <!-- <div class="kerwin-enter-active">111111111</div> -->

    <div id="box">
        <button @click="isShow=!isShow">click</button>

       <transition name="kerwin" appear>
            <div v-show="isShow">1111111111111</div>
       </transition>
    </div>

    <script>
        var vm = new Vue ({
            el:"#box",
            data: {
                isShow:true
            }
        })
    </script>
</body>
</html>